




/*
'===============================================================================
'  MP.LayerHelper.MP_OBS.BL.HrJobTitleManagerBase
'===============================================================================
*/

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using MP.LayerHelper.MP_OBS.BLL;
using MP.LayerHelper.MP_OBS.DAL;
using MP.LayerHelper.MP_OBS.DAL.EntityClasses;
using MP.LayerHelper.MP_OBS.DAL.FactoryClasses;
using MP.LayerHelper.MP_OBS.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace MP.LayerHelper.MP_OBS.BLL
{
	public class HrJobTitleManagerBase : ManagerBase
	{
		/// <summary>
		/// Purpose: Class constructor.
		/// </summary>
		
		public HrJobTitleManagerBase()
		{
			// Nothing for now.
		}
		
		public override string TableName()
        {
            return "HrJobTitle";
        }
		
		public HrJobTitleEntity Insert(HrJobTitleEntity _HrJobTitleEntity)
		{
			return Insert(_HrJobTitleEntity, "");
		}
		
		public HrJobTitleEntity Insert(HrJobTitleEntity _HrJobTitleEntity, string controlId)
		{
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.SaveEntity(_HrJobTitleEntity, true);
				HrJobTitleFields field = new HrJobTitleFields();
                LogEntity(_HrJobTitleEntity, field, AcInsert, controlId);
			}
			return _HrJobTitleEntity;
		}

		
		public HrJobTitleEntity Insert(Guid Id, string JobCode, string JobName, int Priority, string Description, string CreatedBy, DateTime CreatedDate, string UpdatedBy, DateTime UpdatedDate, bool IsDeleted)
		{
			HrJobTitleEntity _HrJobTitleEntity = new HrJobTitleEntity();
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				
				_HrJobTitleEntity.Id = Id;
				_HrJobTitleEntity.JobCode = JobCode;
				_HrJobTitleEntity.JobName = JobName;
				_HrJobTitleEntity.Priority = Priority;
				_HrJobTitleEntity.Description = Description;
				_HrJobTitleEntity.CreatedBy = CreatedBy;
				_HrJobTitleEntity.CreatedDate = CreatedDate;
				_HrJobTitleEntity.UpdatedBy = UpdatedBy;
				_HrJobTitleEntity.UpdatedDate = UpdatedDate;
				_HrJobTitleEntity.IsDeleted = IsDeleted;
				HrJobTitleFields field = new HrJobTitleFields();
                LogEntity(_HrJobTitleEntity, field, AcInsert);
				adapter.SaveEntity(_HrJobTitleEntity, true);
			}
			return _HrJobTitleEntity;
		}

		public HrJobTitleEntity Insert(string JobCode, string JobName, int Priority, string Description, string CreatedBy, DateTime CreatedDate, string UpdatedBy, DateTime UpdatedDate, bool IsDeleted)
		{
			HrJobTitleEntity _HrJobTitleEntity = new HrJobTitleEntity();
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				
				_HrJobTitleEntity.JobCode = JobCode;
				_HrJobTitleEntity.JobName = JobName;
				_HrJobTitleEntity.Priority = Priority;
				_HrJobTitleEntity.Description = Description;
				_HrJobTitleEntity.CreatedBy = CreatedBy;
				_HrJobTitleEntity.CreatedDate = CreatedDate;
				_HrJobTitleEntity.UpdatedBy = UpdatedBy;
				_HrJobTitleEntity.UpdatedDate = UpdatedDate;
				_HrJobTitleEntity.IsDeleted = IsDeleted;
				adapter.SaveEntity(_HrJobTitleEntity, true);
				HrJobTitleFields field = new HrJobTitleFields();
                LogEntity(_HrJobTitleEntity, field, AcInsert);
			}
			return _HrJobTitleEntity;
		}
		
		public bool Update(HrJobTitleEntity _HrJobTitleEntity)
        {
            return Update(_HrJobTitleEntity, "");
        }

		public bool Update(HrJobTitleEntity _HrJobTitleEntity, string controlId)
		{
			bool toReturn = false;
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				RelationPredicateBucket filter = new RelationPredicateBucket();
				IPredicateExpression _PredicateExpression = new PredicateExpression();
				_PredicateExpression.Add(HrJobTitleFields.Id == _HrJobTitleEntity.Id);
					
				filter.PredicateExpression.Add(_PredicateExpression);

				adapter.UpdateEntitiesDirectly(_HrJobTitleEntity, filter);
				toReturn = true;
				
				HrJobTitleFields field = new HrJobTitleFields();
                LogEntity(_HrJobTitleEntity, field, AcUpdate, controlId);
			}
			return toReturn;
		}
		
		public bool Update(HrJobTitleEntity _HrJobTitleEntity, RelationPredicateBucket filter)
		{
			bool toReturn = false;
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.UpdateEntitiesDirectly(_HrJobTitleEntity, filter);
				toReturn = true;
				
				HrJobTitleFields field = new HrJobTitleFields();
                LogEntity(_HrJobTitleEntity, field, AcUpdate);
			}
			return toReturn;
		}

		public bool Update(Guid Id, string JobCode, string JobName, int Priority, string Description, string CreatedBy, DateTime CreatedDate, string UpdatedBy, DateTime UpdatedDate, bool IsDeleted)
		{
			bool toReturn = false;
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				HrJobTitleEntity _HrJobTitleEntity = new HrJobTitleEntity(Id);
				if (adapter.FetchEntity(_HrJobTitleEntity))
				{
				
					_HrJobTitleEntity.JobCode = JobCode;
					_HrJobTitleEntity.JobName = JobName;
					_HrJobTitleEntity.Priority = Priority;
					_HrJobTitleEntity.Description = Description;
					_HrJobTitleEntity.CreatedBy = CreatedBy;
					_HrJobTitleEntity.CreatedDate = CreatedDate;
					_HrJobTitleEntity.UpdatedBy = UpdatedBy;
					_HrJobTitleEntity.UpdatedDate = UpdatedDate;
					_HrJobTitleEntity.IsDeleted = IsDeleted;
					adapter.SaveEntity(_HrJobTitleEntity, true);
					toReturn = true;
					
					HrJobTitleFields field = new HrJobTitleFields();
					LogEntity(_HrJobTitleEntity, field, AcUpdate);
				}
			}
			return toReturn;
		}

		public bool Delete(Guid Id)
		{
			bool toReturn = false;
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				HrJobTitleEntity _HrJobTitleEntity = new HrJobTitleEntity(Id);
				if (adapter.FetchEntity(_HrJobTitleEntity))
				{
					adapter.DeleteEntity(_HrJobTitleEntity);
					toReturn = true;
				}
			}
			return toReturn;
		}
		
		public void DeleteAll() 
		{
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.DeleteEntitiesDirectly("HrJobTitleEntity", null);
			}
		}
		
		
		public int DeleteById(Guid Id)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Id == Id);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByJobCode(string JobCode)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobCode == JobCode);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByJobName(string JobName)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobName == JobName);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByPriority(int Priority)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Priority == Priority);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByDescription(string Description)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Description == Description);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByCreatedBy(string CreatedBy)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedBy == CreatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByCreatedDate(DateTime CreatedDate)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedDate == CreatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByUpdatedBy(string UpdatedBy)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedBy == UpdatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByUpdatedDate(DateTime UpdatedDate)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedDate == UpdatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		
		public int DeleteByIsDeleted(bool IsDeleted)
		{
			int toReturn = 0;
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.IsDeleted == IsDeleted);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				toReturn = adapter.DeleteEntitiesDirectly("HrJobTitleEntity", filter);
			}
			return toReturn;
		}
		

		
		public HrJobTitleEntity SelectOne(Guid Id)
		{
			HrJobTitleEntity toReturn = null;
			using(DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				HrJobTitleEntity _HrJobTitleEntity = new HrJobTitleEntity(Id);
				if (adapter.FetchEntity(_HrJobTitleEntity))
				{
					toReturn = _HrJobTitleEntity;
				}
			}
			return toReturn;
		}

		// Return DataTable
		public DataTable SelectAllRDT()
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, null, true);
			}
			return toReturn;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectAllLST()
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, null, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectAllLST_Paged(int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, null, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByIdLST(Guid Id)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Id == Id);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByIdLST_Paged(Guid Id, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Id == Id);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByIdRDT(Guid Id)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Id == Id);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByIdRDT_Paged(Guid Id, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Id == Id);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByJobCodeLST(string JobCode)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobCode == JobCode);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByJobCodeLST_Paged(string JobCode, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobCode == JobCode);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByJobCodeRDT(string JobCode)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobCode == JobCode);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByJobCodeRDT_Paged(string JobCode, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobCode == JobCode);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByJobNameLST(string JobName)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobName == JobName);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByJobNameLST_Paged(string JobName, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobName == JobName);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByJobNameRDT(string JobName)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobName == JobName);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByJobNameRDT_Paged(string JobName, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.JobName == JobName);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByPriorityLST(int Priority)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Priority == Priority);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByPriorityLST_Paged(int Priority, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Priority == Priority);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByPriorityRDT(int Priority)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Priority == Priority);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByPriorityRDT_Paged(int Priority, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Priority == Priority);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByDescriptionLST(string Description)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Description == Description);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByDescriptionLST_Paged(string Description, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Description == Description);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByDescriptionRDT(string Description)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Description == Description);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByDescriptionRDT_Paged(string Description, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.Description == Description);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByCreatedByLST(string CreatedBy)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedBy == CreatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByCreatedByLST_Paged(string CreatedBy, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedBy == CreatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByCreatedByRDT(string CreatedBy)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedBy == CreatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByCreatedByRDT_Paged(string CreatedBy, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedBy == CreatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByCreatedDateLST(DateTime CreatedDate)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedDate == CreatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByCreatedDateLST_Paged(DateTime CreatedDate, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedDate == CreatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByCreatedDateRDT(DateTime CreatedDate)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedDate == CreatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByCreatedDateRDT_Paged(DateTime CreatedDate, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.CreatedDate == CreatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByUpdatedByLST(string UpdatedBy)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedBy == UpdatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByUpdatedByLST_Paged(string UpdatedBy, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedBy == UpdatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByUpdatedByRDT(string UpdatedBy)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedBy == UpdatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByUpdatedByRDT_Paged(string UpdatedBy, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedBy == UpdatedBy);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByUpdatedDateLST(DateTime UpdatedDate)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedDate == UpdatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByUpdatedDateLST_Paged(DateTime UpdatedDate, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedDate == UpdatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByUpdatedDateRDT(DateTime UpdatedDate)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedDate == UpdatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByUpdatedDateRDT_Paged(DateTime UpdatedDate, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.UpdatedDate == UpdatedDate);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByIsDeletedLST(bool IsDeleted)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.IsDeleted == IsDeleted);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null);
			}
			return _HrJobTitleCollection;
		}
		
		// Return EntityCollection<HrJobTitleEntity>
		public EntityCollection<HrJobTitleEntity> SelectByIsDeletedLST_Paged(bool IsDeleted, int PageNumber, int PageSize)
		{
			EntityCollection<HrJobTitleEntity> _HrJobTitleCollection = new EntityCollection<HrJobTitleEntity>();
			RelationPredicateBucket filter = new RelationPredicateBucket();

			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.IsDeleted == IsDeleted);
			filter.PredicateExpression.Add(_PredicateExpression);
			
			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchEntityCollection(_HrJobTitleCollection, filter, 0, null, null, PageNumber, PageSize);
			}
			return _HrJobTitleCollection;
		}
		
		// Return DataTable
		public DataTable SelectByIsDeletedRDT(bool IsDeleted)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.IsDeleted == IsDeleted);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, true);
			}
			return toReturn;
		}
		
		// Return DataTable
		public DataTable SelectByIsDeletedRDT_Paged(bool IsDeleted, int PageNumber, int PageSize)
		{
			DataTable toReturn = new DataTable();
			EntityCollection _HrJobTitleCollection = new EntityCollection(new HrJobTitleEntityFactory());
			RelationPredicateBucket filter = new RelationPredicateBucket();
			
			IPredicateExpression _PredicateExpression = new PredicateExpression();
			_PredicateExpression.Add(HrJobTitleFields.IsDeleted == IsDeleted);
			filter.PredicateExpression.Add(_PredicateExpression);

			using (DataAccessAdapterBase adapter = (new DataAccessAdapterFactory()).CreateAdapter())
			{
				adapter.FetchTypedList(_HrJobTitleCollection.EntityFactoryToUse.CreateFields(), toReturn, filter, 0, null, true, null, PageNumber, PageSize);
			}
			return toReturn;
		}


		
		

	}
}
